<form id="pagerForm" method="post" action="/index.php?act=visitafter&st=main">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="customer_name" value="{$customer_name}" />
	<input type="hidden" name="sale_name" value="{$sale_name}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="/index.php?act=visitafter&st=main" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				
				<td>
					客户姓名：<input type="text" name="customer_name" value="{$customer_name}" />
				</td>
				<td>
					业务员姓名：<input type="text" name="sale_name" value="{$sale_name}" />
				</td>
				<td>
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
					</ul>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/index.php?act=visitafter&st=visitAdd" target="dialog" rel="add_order" title="添加售后走访信息" mask="true" width="910" height="400"><span>添加</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="/index.php?act=visitafter&st=visitDelete" class="delete" postType="string"><span>删除</span></a></li>
			<li><a class="edit" href="/index.php?act=visitafter&st=visitEdit&id={sid_user}" target="dialog" rel="edit_order" title="编辑售后走访信息" mask="true" width="910" height="400"><span>修改</span></a></li>
			<li><a class="icon" href="/index.php?act=visitafter&st=visitExport" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="113">
		<thead>
			<tr>
				<th colspan="4" excolspan="10" show="first" onclick="showitem(this)" status="hide">+客户概况</th>
				<th colspan="1" excolspan="6" show="second" onclick="showitem(this)" status="hide">+问题收集人信息</th>
				<th colspan="5" excolspan="13" show="third" onclick="showitem(this)" status="hide">+接收问题及追溯信息</th>
				<th colspan="2" excolspan="7" show="forth" onclick="showitem(this)" status="hide">+问题归类预定责</th>
				<th colspan="2" excolspan="6" show="fifth" onclick="showitem(this)" status="hide">+问题整改发派</th>
				<th colspan="6" excolspan="8" show="sixth" onclick="showitem(this)" status="hide">+问题整改回复及定责</th>
				<th colspan="3">答复客户</th>
				<th colspan="2">操作信息</th>
			</tr>
			<tr>
				<!--客户状态-->
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="80">客户名称</th>
				<th width="80" style="display:none" class="first">住所省份</th>
				<th width="80" style="display:none" class="first">住所地市</th>
				<th width="80" style="display:none" class="first">住所街道</th>
				<th width="80">企业概况</th>
				<th width="80" style="display:none" class="first">用户拿货能力</th>
				<th width="80">收集月用户状态</th>
				<th width="80" style="display:none" class="first">业务所属部门</th>
				<th width="80" style="display:none" class="first">维护业务人员</th>
				<!--end 客户状态-->
				<!--问题收集人信息-->
				<th width="80">问题收集日期</th>
				<th width="80" style="display:none" class="second">问题收集渠道</th>
				<th width="80" style="display:none" class="second">问题收集人姓名</th>
				<th width="80" style="display:none" class="second">问题收集人部门</th>
				<th width="80" style="display:none" class="second">问题收集人职务</th>
				<th width="80" style="display:none" class="second">问题收集人电话</th>
				<!--end 问题收集人信息-->
				<!--接收问题及追溯信息-->
				<th width="80" style="display:none" class="third">问题编号</th>
				<th width="80">问题简称</th>
				<th width="80">问题描述</th>
				<th width="80" style="display:none" class="third">问题所涉合同</th>
				<th width="80">问题所涉产品</th>
				<th width="80">问题所涉牌号</th>
				<th width="80">问题所涉规格</th>
				<th width="80" style="display:none" class="third">问题所涉数量</th>
				<th width="80" style="display:none" class="third">问题所涉批号</th>
				<th width="80" style="display:none" class="third">问题发生日预判</th>
				<th width="80" style="display:none" class="third">问题提出人姓名</th>
				<th width="80" style="display:none" class="third">问题提出人职务</th>
				<th width="80" style="display:none" class="third">问题提出人电话</th>
				<!--end 接收问题及追溯信息-->
				<!--问题归类预定责-->
				<th width="80" style="display:none" class="forth">问题小类判定</th>
				<th width="80">问题大类判定</th>
				<th width="80" style="display:none" class="forth">问题性质判定</th>
				<th width="80" style="display:none" class="forth">问题主责单位预判</th>
				<th width="80" style="display:none" class="forth">问题关联单位预判</th>
				<th width="80">问题发生日确认</th>
				<th width="80" style="display:none" class="forth">问题重复次数预判</th>
				<!--end 问题归类预定责-->
				<!--问题整改发派-->
				<th width="80" style="display:none" class="fifth">整改令发派批次</th>
				<th width="80">整改令发派日期</th>
				<th width="80">牵头解决单位</th>
				<th width="80" style="display:none" class="fifth">解决负责人</th>
				<th width="80" style="display:none" class="fifth">解决联络人</th>
				<th width="80" style="display:none" class="fifth">解决联络人电话</th>
				<!--end 问题整改发派-->
				<!--问题整改回复及定责-->
				<th width="80">问题责任单位认定</th>
				<th width="80">回复问题原因</th>
				<th width="80">回复是否解决</th>
				<th width="80">回复措施或理由</th>
				<th width="80" style="display:none" class="sixth">回复整改结束时间</th>
				<th width="80">回复解决结果</th>
				<th width="80">核准问题重复次数</th>
				<th width="80" style="display:none" class="sixth">问题重复追责情况</th>
				<!--end 问题整改回复及定责-->
				<!--答复客户-->
				<th width="80">答复内容</th>
				<th width="80">答复内容</th>
				<th width="80">问题答复人</th>
				<!--end 答复客户-->
				<!--操作信息-->
				<th width="80">最后操作人</th>
				<th width="80">最后操作时间</th>
				<!--end 操作信息-->
			</tr>
		</thead>
		<tbody>
			{foreach item=visit from=$visit_list}
			<tr target="sid_user" rel="{$visit.customer_info_id}">
				<!--客户状态-->
				<td><input name="ids" value="{$visit.customer_info_id}" type="checkbox"></td>
				<td title="{$visit.customer_name}" alt="{$visit.customer_name}">{$visit.customer_name}</td>
				<td title="{$visit.province}" alt="{$visit.province}" style="display:none" class="first">{$visit.province}</td>
				<td title="{$visit.city}" alt="{$visit.city}" style="display:none" class="first">{$visit.city}</td>
				<td title="{$visit.street}" alt="{$visit.street}" style="display:none" class="first">{$visit.street}</td>
				<td title="{$visit.general}" alt="{$visit.general}">{$visit.general}</td>
				<td title="{$visit.ability}" alt="{$visit.ability}" style="display:none" class="first">{$visit.ability}</td>
				<td title="{$visit.status}" alt="{$visit.status}">{$visit.status}</td>
				<td title="{$visit.part}" alt="{$visit.part}" style="display:none" class="first">{$visit.part}</td>
				<td title="{$visit.sale_name}" alt="{$visit.sale_name}" style="display:none" class="first">{$visit.sale_name}</td>
				<!-- end 客户状态-->
				<!--问题收集人信息-->
				<td title="{$visit.collection_date}" alt="{$visit.collection_date}">{$visit.collection_date}</td>
				<td style="display:none" class="second" title="{$visit.collection_channel}" alt="{$visit.collection_channel}">{$visit.collection_channel}</td>
				<td style="display:none" class="second" title="{$visit.person_name}" alt="{$visit.person_name}">{$visit.person_name}</td>
				<td style="display:none" class="second" title="{$visit.collection_part}" alt="{$visit.collection_part}">{$visit.collection_part}</td>
				<td style="display:none" class="second" title="{$visit.person_study}" alt="{$visit.person_study}">{$visit.person_study}</td>
				<td style="display:none" class="second" title="{$visit.person_tel}" alt="{$visit.person_tel}">{$visit.person_tel}</td>
				<!--end 问题收集人信息-->
				<!--接收问题及追溯信息-->
				<td title="{$visit.customer_question_id}" alt="{$visit.customer_question_id}" style="display:none" class="third">{$visit.customer_question_id}</td>
				<td title="{$visit.question}" alt="{$visit.question}">{$visit.question}</td>
				<td title="{$visit.question_desc}" alt="{$visit.question_desc}" style="display:none" class="third">{$visit.question_desc}</td>
				<td title="{$visit.agreement}" alt="{$visit.agreement}">{$visit.agreement}</td>
				<td title="{$visit.product}" alt="{$visit.product}">{$visit.product}</td>
				<td title="{$visit.grade}" alt="{$visit.grade}">{$visit.grade}</td>
				<td title="{$visit.format}" alt="{$visit.format}" style="display:none" class="third">{$visit.format}</td>
				<td title="{$visit.number}" alt="{$visit.number}" style="display:none" class="third">{$visit.number}</td>
				<td title="{$visit.betch}" alt="{$visit.betch}" style="display:none" class="third">{$visit.betch}</td>
				<td title="{$visit.occur_date}" alt="{$visit.occur_date}" style="display:none" class="third">{$visit.occur_date}</td>
				<td title="{$visit.person_name}" alt="{$visit.person_name}" style="display:none" class="third">{$visit.person_name}</td>
				<td title="{$visit.person_study}" alt="{$visit.person_study}" style="display:none" class="third">{$visit.person_study}</td>
				<td title="{$visit.person_tel}" alt="{$visit.person_tel}" style="display:none" class="third">{$visit.person_tel}</td>
				<!--end 接收问题及追溯信息-->
				<!--问题归类预定责-->
				<td style="display:none" class="forth">问题小类判定</td>
				<td >问题大类判定</td>
				<td style="display:none" class="forth">问题性质判定</td>
				<td style="display:none" class="forth">问题主责单位预判</td>
				<td style="display:none" class="forth">问题关联单位预判</td>
				<td>问题发生日确认</td>
				<td style="display:none" class="forth">问题重复次数预判</td>
				<!--end 问题归类预定责-->
				<!--问题整改发派-->
				<td style="display:none" class="fifth">整改令发派批次</td>
				<td>整改令发派日期</td>
				<td>牵头解决单位</td>
				<td style="display:none" class="fifth">解决负责人</td>
				<td style="display:none" class="fifth">解决联络人</td>
				<td style="display:none" class="fifth">解决联络人电话</td>
				<!--end 问题整改发派-->
				<!--问题整改回复及定责-->
				<td>问题责任单位认定</td>
				<td>回复问题原因</td>
				<td>回复是否解决</td>
				<td>回复措施或理由</td>
				<td style="display:none" class="sixth">回复整改结束时间</td>
				<td>回复解决结果</td>
				<td>核准问题重复次数</td>
				<td style="display:none" class="sixth">问题重复追责情况</td>
				<!--end 问题整改回复及定责-->
				<!--答复客户-->
				<td>答复内容</td>
				<td>答复时间</td>
				<td>问题答复人</td>
				<!--end 答复客户-->
				<!--操作信息-->
				<td>{$visit.editer}</td>
				<td>{$visit.raw_update_time}</td>
				<!--end 操作信息-->
			</tr>
			{/foreach}
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				{foreach item=num from=$shoNum}
				<option value="{$num}" {if $numPerPage eq $num}selected{/if}>{$num}</option>
				{/foreach}
			</select>
			<span>条，共{$total}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$total}" numPerPage="{$numPerPage}" pageNumShown="{$pageNumShown}" currentPage="{$pageNum}"></div>
	</div>
</div>

<script type="text/javascript">
function showitem(obj){
	var object = $(obj);
	var class_name = object.attr("show");
	var func = object.attr("status");
	var excolspan = object.attr("excolspan");
	var colspan = object.attr("colspan");
	var html = object.find("div").html();
	object.attr("excolspan", colspan);
	object.attr("colspan", excolspan);
	if(func == "show"){
		$("." + class_name).hide();
		object.find("div").html(html.replace("-","+"));
	}else{
		$("." + class_name).show();
		object.find("div").html(html.replace("+","-"));
	}
	if(func == "show"){
		object.attr("status", "hide");
	}else{
		object.attr("status", "show");
	}
}
</script>